# -*- coding: utf-8 -*-

from pydantic import ConfigDict

from App.common.schema import SchemaBase


class SysConfigSchema(SchemaBase):
    model_config = ConfigDict(
        from_attributes=True
    )
    id: int | None = None
    title: str | None = None
    remark: str | None = None
    file_server: str | None = None
    logo_url: str | None = None
    copy_right: str | None = None
    icp: str | None = None
    cyber: str | None = None
    cyber_image: str | None = None
    partner: list | None = None


class CreateSysConfigParam(SchemaBase):
    title: str | None = None
    remark: str | None = None
    file_server: str | None = None
    logo_url: str | None = None
    copy_right: str | None = None
    icp: str | None = None
    cyber: str | None = None
    cyber_image: str | None = None
    partner: list | None = None


class UpdateSysConfigParam(SysConfigSchema):
    pass
